//
//  AppDelegate.h
//  QiYReader
//
//  Created by 奇阅科技 on 14-11-15.
//  Copyright (c) 2014年 奇阅科技. All rights reserved.
//

#import <UIKit/UIKit.h>
@class MBProgressHUD;
#define kAppKey             @"2404890678"
#define kAppSecret          @"b4dfcc3a6041dcf0a90d2ba716d7379c"
#define kAppRedirectURI     @"http://sns.whalecloud.com/sina2/callback"
#define QQAppKey            @"1103995072"


#define IOS7 ([[[UIDevice currentDevice]systemVersion] floatValue] >= 7.0 ? YES : NO)
#define RGB_COLOR(r,g,b) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:1]

#define SCREEN_HEIGHT [UIScreen mainScreen].bounds.size.height
#define SCREEN_WIDTH [UIScreen mainScreen].bounds.size.width
#define APP_HEIGHT [UIScreen mainScreen].applicationFrame.size.height
#define APP_WIDTH [UIScreen mainScreen].applicationFrame.size.width
#define YellowColor RGB_COLOR(255, 114, 0)

#define UMSYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] != NSOrderedAscending)
#define _IPHONE80_ 80000

@interface AppDelegate : UIResponder <UIApplicationDelegate>

@property (strong, nonatomic) UIWindow *window;
+ (AppDelegate*)delegate;

+ (MBProgressHUD *)showHUDAndHide:(NSString *)str view:(UIView *)view;
+ (MBProgressHUD *)showwarnHUDAndHide:(NSString *)str view:(UIView *)view;
+ (MBProgressHUD *)showHUD:(NSString *)str view:(UIView *)view ;
+ (void)hideAllHUD:(UIView *)view ;
+ (void)showAlert:(NSString *)title message:(NSString *)msg;
-(void)goToBookRack;
@end

